<?php
namespace Platform\Model;

use PhalApi\Model\DataModel;

class Admin extends DataModel {

    public function getTableName($id) {
        return 'admin';
    }

    public function getByUsername($username) {
        return $this->getORM()
            ->where('name', $username)
            ->fetchOne();
    }    
}
